require 'scanner/token'

class State
  @token_type = :Undefined
  @token = nil
  
  def self.on_enter(token, char)
    literal = ""
    literal = token.literal unless token.nil?
    @token = Token.new(@token_type, "#{literal}#{char}")
  end
  def self.on_exit
    return @token
  end
  def self.next_state(char)
    return nil
  end
end